#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class TreeNode
{
public:
    int val;
    int* _left;
    int* _right;

    void Init()
    {
        val = 0;
        _left = nullptr;
        _right = nullptr;
    }
    TreeNode& CreatTree(int p)
    {
        TreeNode& a[p] = { 0 };
        for (int i = 0; i < p; i++)
        {
            TreeNode* tmp = (TreeNode*)malloc(sizeof(TreeNode));
            TreeNode& x = *tmp;
            if (tmp == nullptr)
            {
                perror("malloc");
                exit(-1);
            }
            a[i] = x;
        }
    }
};
int main()
{
    TreeNode tree;
    tree.Init();
    return 0;
}